package graphics;

import hardware.Display2D;

public class Font8x8 extends Font{



	public static final byte [] [] font8x8 ={{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, //  0x20
						{0x30, 0x78, 0x78, 0x30, 0x30, 0x00, 0x30, 0x00 }, // ! 0x21
						{0x6C, 0x6C, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00}, //' " 0x22"
						{0x6C, 0x6C, (byte) 0xFE, 0x6C, (byte) 0xFE, 0x6C, 0x6C, 0x00 }, //    ' # 0x23
						{0x30, 0x7C, (byte) 0xC0, 0x78, 0x0C, (byte) 0xF8, 0x30, 0x00}, //     ' $ 0x24
						{0x00, (byte) 0xC6, (byte) 0xCC, 0x18, 0x30, 0x66, (byte) 0xC6, 0x00}, //     ' % 0x25
						{0x38, 0x6C, 0x38, 0x76, (byte) 0xDC, (byte) 0xCC, 0x76, 0x00}, //      ' & 0x26
						{0x60, 0x60, (byte) 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00}, //   <' 0x27
						{0x18, 0x30, 0x60, 0x60, 0x60, 0x30, 0x18, 0x00 }, // ( 0x28
						{0x60, 0x30, 0x18, 0x18, 0x18, 0x30, 0x60, 0x00 }, // ) 0x29
						{0x00, 0x66, 0x3C, (byte) 0xFF, 0x3C, 0x66, 0x00, 0x00 }, // * 0x2A
						{0x00, 0x30, 0x30, (byte) 0xFC, 0x30, 0x30, 0x00, 0x00 }, // + 0x2b
						{0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x60}, // , 0x3c
						{0x00, 0x00, 0x00, (byte) 0xFC, 0x00, 0x00, 0x00, 0x00}, // - 0x2d
						{0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x00 }, // . 0x3e
						{0x06, 0x0C, 0x18, 0x30, 0x60, (byte) 0xC0, (byte) 0x80, 0x00}, // / 0x2f
						{0x7C, (byte) 0xC6, (byte) 0xCE, (byte) 0xDE, (byte) 0xF6, (byte) 0xE6, 0x7C, 0x00}, // 0 0x30
						{0x30, 0x70, 0x30, 0x30, 0x30, 0x30, 0x30, 0x00}, // 1 0x31
						{0x78, (byte) 0xCC, 0x0C, 0x38, 0x60, (byte) 0xC0, (byte) 0xFC, 0x00}, // 2 0x32
						{0x78, (byte) 0xCC, 0x0C, 0x38, 0x0C, (byte) 0xCC, 0x78, 0x00}, // 3 0x33
						{0x1C, 0x3C, 0x6C, (byte) 0xCC, (byte) 0xFE, 0x0C, 0x0C, 0x00}, // 4 0x34
						{(byte) 0xFC, (byte) 0xC0, (byte) 0xF8, 0x0C, 0x0C, (byte) 0xCC, 0x78, 0x00}, // 5 0x35
						{0x38, 0x60, (byte) 0xC0, (byte) 0xF8, (byte) 0xCC, (byte) 0xCC, 0x78, 0x00}, // 6 0x36
						{(byte) 0xFC, 0x0C, 0x0C, 0x18, 0x30, 0x30, 0x30, 0x00}, // 7 0x37
						{0x78, (byte) 0xCC, (byte) 0xCC, 0x78, (byte) 0xCC, (byte) 0xCC, 0x78, 0x00}, // 8 0x38
						{0x78, (byte) 0xCC, (byte) 0xCC, 0x7C, 0x0C, 0x18, 0x70, 0x00}, // 9 0x39
						{0x00, 0x30, 0x30, 0x00, 0x00, 0x30, 0x30, 0x00}, // : 0x3A
						{0x00, 0x30, 0x30, 0x00, 0x00, 0x30, 0x30, 0x60}, // ; 0x3b
						{0x18, 0x30, 0x60, (byte) 0xC0, 0x60, 0x30, 0x18, 0x00}, // < 0x3c
						{0x00, 0x00, (byte) 0xFC, 0x00, 0x00, (byte) 0xFC, 0x00, 0x00}, // = 0x3d
						{0x60, 0x30, 0x18, 0x0C, 0x18, 0x30, 0x60, 0x00}, // > 0x3e
						{0x78, (byte) 0xCC, 0x0C, 0x18, 0x30, 0x00, 0x30, 0x00}, // ? 0x3f
						{0x7C, (byte) 0xC6, (byte) 0xDE, (byte) 0xDE, (byte) 0xDE, (byte) 0xC0, 0x78, 0x00}, // @ 0x40
						{0x18, 0x3C, 0x66, 0x66, 0x7E, 0x66, 0x66, 0x00}, // A 0x41
						{0x7C, 0x66, 0x66, 0x7C, 0x66, 0x66, 0x7C, 0x00}, // B 0x42
						{0x3C, 0x66, (byte) 0xC0, (byte) 0xC0, (byte) 0xC0, 0x66, 0x3C, 0x00 }, // C 0x43
						{0x78, 0x6C, 0x66, 0x66, 0x66, 0x6C, 0x78, 0x00}, // D 0x44
						{0x7E, 0x60, 0x60, 0x78, 0x60, 0x60, 0x7E, 0x00}, // E 0x45
						{0x7E, 0x60, 0x60, 0x78, 0x60, 0x60, 0x60, 0x00 }, // F 0x46
						{0x3C, 0x66, (byte) 0xC0, (byte) 0xC0, (byte) 0xCE, 0x66, 0x3E, 0x00 }, // G 0x47
						{0x66, 0x66, 0x66, 0x7E, 0x66, 0x66, 0x66, 0x00 }, // H 0x48
						{0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00 }, // I 0x49
						{0x06, 0x06, 0x06, 0x06, 0x66, 0x66, 0x3C, 0x00}, // J 0x4A
						{0x66, 0x66, 0x6C, 0x78, 0x6C, 0x66, 0x66, 0x00}, // K 0x4B
						{0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x7E, 0x00}, // L 0x4C
						{(byte) 0xC6, (byte) 0xEE, (byte) 0xFE, (byte) 0xFE, (byte) 0xD6, (byte) 0xC6, (byte) 0xC6, 0x00}, // M 0x4D
						{(byte) 0xC6, (byte) 0xE6, (byte) 0xF6, (byte) 0xDE, (byte) 0xCE, (byte) 0xC6, (byte) 0xC6, 0x00}, // N 0x4E
						{0x3C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x00}, // O 0x4F
						{0x7C, 0x66, 0x66, 0x7C, 0x60, 0x60, 0x60, 0x00}, // P 0x50
						{0x3C, 0x66, 0x66, 0x66, 0x6E, 0x3C, 0x0E, 0x00}, // Q 0x51
						{0x7C, 0x66, 0x66, 0x7C, 0x6C, 0x66, 0x66, 0x00}, // R 0x52
						{0x3C, 0x66, 0x70, 0x38, 0x0E, 0x66, 0x3C, 0x00}, // S 0x53
						{0x7E, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00 }, // T 0x54
						{0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3E, 0x00}, // U 0x55
						{0x66, 0x66, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x00}, // V 0x56
						{(byte) 0xC6, (byte) 0xC6, (byte) 0xC6, (byte) 0xD6, (byte) 0xFE, (byte) 0xEE, (byte) 0xC6, 0x00}, // W 0x57
						{0x66, 0x66, 0x3C, 0x18, 0x3C, 0x66, 0x66, 0x00}, // X 0x58
						{0x66, 0x66, 0x66, 0x3C, 0x18, 0x18, 0x18, 0x00}, // Y 0x59
						{(byte) 0xFE, 0x06, 0x0C, 0x18, 0x30, 0x60, (byte) 0xFE, 0x00}, // Z 0x5A
						{0x78, 0x60, 0x60, 0x60, 0x60, 0x60, 0x78, 0x00}, // [ 0x5b
						{(byte) 0xC0, 0x60, 0x30, 0x18, 0x0C, 0x06, 0x02, 0x00}, // \ 0x5c
						{0x78, 0x18, 0x18, 0x18, 0x18, 0x18, 0x78, 0x00}, // ] 0x5d
						{0x10, 0x38, 0x6C, (byte) 0xC6, 0x00, 0x00, 0x00, 0x00}, // ^ 0x5E
						{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0xFF}, // _ 0x5f
						{0x30, 0x30, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00}, //  ` 0x60
						{0x00, 0x00, 0x3C, 0x06, 0x3E, 0x66, 0x3A, 0x00}, // a 0x61
						{0x60, 0x60, 0x60, 0x7C, 0x66, 0x66, 0x5C, 0x00}, // b 0x62
						{0x00, 0x00, 0x3C, 0x66, 0x60, 0x66, 0x3C, 0x00}, // c 0x63
						{0x06, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3A, 0x00}, // d 0x64
						{0x00, 0x00, 0x3C, 0x66, 0x7E, 0x60, 0x3C, 0x00}, // e 0x65
						{0x1C, 0x36, 0x30, 0x78, 0x30, 0x30, 0x30, 0x00}, // f 0x66
						{0x00, 0x00, 0x3A, 0x66, 0x66, 0x3E, 0x06, 0x3C}, // g 0x67
						{0x60, 0x60, 0x6C, 0x76, 0x66, 0x66, 0x66, 0x00}, // h 0x68
						{0x18, 0x00, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00}, // i 0x69
						{0x0C, 0x00, 0x0C, 0x0C, 0x0C, (byte) 0xCC, (byte) 0xCC, 0x78}, // j 0x6a
						{0x60, 0x60, 0x66, 0x6C, 0x78, 0x6C, 0x66, 0x00}, // k 0x6b
						{0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x00}, // l 0x6c
						{0x00, 0x00, (byte) 0xC6, (byte) 0xEE, (byte) 0xFE, (byte) 0xD6, (byte) 0xC6, 0x00}, // m 0x6d
						{0x00, 0x00, 0x7C, 0x66, 0x66, 0x66, 0x66, 0x00}, // n 0x6e
						{0x00, 0x00, 0x3C, 0x66, 0x66, 0x66, 0x3C, 0x00}, // o 0x6f
						{0x00, 0x00, 0x5C, 0x66, 0x66, 0x7C, 0x60, 0x60}, // p 0x70
						{0x00, 0x00, 0x3A, 0x66, 0x66, 0x3E, 0x06, 0x06}, // q 0x71
						{0x00, 0x00, 0x5C, 0x76, 0x60, 0x60, 0x60, 0x00}, // r 0x72
						{0x00, 0x00, 0x3E, 0x60, 0x3C, 0x06, 0x7C, 0x00}, // s 0x73
						{0x30, 0x30, 0x7C, 0x30, 0x30, 0x34, 0x18, 0x00}, // t 0x74
						{0x00, 0x00, 0x66, 0x66, 0x66, 0x66, 0x3A, 0x00}, // u 0x75
						{0x00, 0x00, 0x66, 0x66, 0x66, 0x3C, 0x18, 0x00}, // v 0x76
						{0x00, 0x00, (byte) 0xC6, (byte) 0xD6, (byte) 0xFE, (byte) 0xFE, 0x6C, 0x00}, // w 0x77
						{0x00, 0x00, (byte) 0xC6, 0x6C, 0x38, 0x6C, (byte) 0xC6, 0x00}, // x 0x78
						{0x00, 0x00, 0x66, 0x66, 0x66, 0x3E, 0x06, 0x3C}, // y 0x79
						{0x00, 0x00, 0x7E, 0x0C, 0x18, 0x30, 0x7E, 0x00}, // z 0x7a
						{0x1C, 0x30, 0x30, (byte) 0xE0, 0x30, 0x30, 0x1C, 0x00}, // { 0x7b
						{0x18, 0x18, 0x18, 0x00, 0x18, 0x18, 0x18, 0x00}, // | 0x7c
						{(byte) 0xE0, 0x30, 0x30, 0x1C, 0x30, 0x30, (byte) 0xE0, 0x00}, // ~ 0x7d
						{0x76, (byte) 0xDC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; // ~ 0x7e


	
	
public Font8x8()
{
	//myFont=this;
	fontSize = 8;
}
		
		
	public void printChar(char index,short color,int x,int y)
	{
		 Display2D.print8x8Char(index,color, x,  y);		
	}	
		
}
